package com.atguigu.spring.aop.xml;

import org.junit.jupiter.api.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author yanglin
 * @create 2023-12-12 16:47 星期二
 * description:
 */
public class TestAop {
    
    @Test
    public void testAopXml(){
        ApplicationContext applicationContext =
                new ClassPathXmlApplicationContext("./bean13.xml");

        Book book = applicationContext.getBean("book", Book.class);
        book.buy();
    }
    
}
